package com.cicoding.strategy;

import com.cicoding.bean.Problem;
import com.cicoding.request.GenerateRequest;

import java.util.Set;

/**
 * @Author:chandfy
 * @Description:
 * @Date:2022/12/8
 */
public class GenerateStrategyContext {
    private GenerateStrategy generateStrategy;

    public GenerateStrategyContext(GenerateStrategy generateStrategy){this.generateStrategy=generateStrategy;}

    public Set<Problem> GenerateProblem(GenerateRequest generateRequest){
        return generateStrategy.generateProblem(generateRequest);
    }
}
